#ifndef ULUBATLI_H
#define ULUBATLI_H

#include <iostream>
#include "SDL.h"
#include "SDL_image.h"

struct Vector
{
	float X;
	float Y;

	Vector()
	{
		X = 0.0f;
		Y = 0.0f;
	}
};

class Ulubatli
{
    public:
        Ulubatli();
        virtual ~Ulubatli();
        SDL_Surface* spriteYukle(std::string yol);
        SDL_Surface* getSprite(int y,int x);
        void show(SDL_Surface *screen);
        void ciz(SDL_Surface *kaynak,SDL_Surface *hedef);

        void setX(int x);
        void setY(int Y);
        void setMevcutSprite(SDL_Surface *sprite);

        SDL_Rect getKoord();
        int getX();
        int getY();
        int getLeft();
        int getRight();
        int getTop();
        int getBottom();
        SDL_Surface* getMevcutSprite();
    protected:
    private:
       SDL_Rect koord;
       SDL_Surface *sprites[4][3];
       SDL_Surface *mevcutSprite;
       Vector orign;
       Vector position;
};

#endif // ULUBATLI_H
